package controllers

import (
	"net/http"
)

type user struct {
}

var User user

//目录二
func (User user) List(res http.ResponseWriter, input *http.Request) {
	//defer app.Exception.Listen(res)
	//网关

	panic("达到请求上限，退出线程！")
	//代理
	//models.User.GetUserById(1)
	//fmt.Println(r.RemoteAddr, "连接成功")
	// 请求方式：GET POST DELETE PUT UPDATE
	//fmt.Println("method:", r.Method)
	// /go
	//fmt.Println("url:", r.URL.Path)
	//fmt.Println("header:", r.Header)
	//fmt.Println("body:", r.Body)
	// 回复
	res.Write([]byte("1"))
}

func (User user) Item(res http.ResponseWriter, input *http.Request) {
	res.Write([]byte("1"))
}
